package com.hyj.shop.utils.redis;

/**
 * @describe：redis命名规范常量
 * @author：Xisoo on 2019/6/26
 * @version：v1.0.0
 */
public class RedisConstants {

    //------------------登录注册------------------
    public static String USER_Login_MESSAGE = "user:login:message";                       //短信验证码

    public static Integer USER_LOGIN_MESSAGE_TIME_SAVE = 60 * 5;                          //短信验证码保留时间
    public static Integer USER_LOGIN_MESSAGE_TIME_AGAIN = 90;                             //短信验证码可以再次发送的时间

    public static String USER_LOGIN_RSA = "user:login:rsa";                               //密码登录前需要生成公钥私钥并保存到redis

    public static String USER_LOGIN_PRE = "user:login:pre";                               //redis存储的token
    public static String USER_LOGIN_Aft = "user:login:aft";

    //------------------微信公众号------------------
    public static final String WEIIXN = "weiixn";                                         //weiixn
    public static final String ACCESS_TOKEN = "access_token";                             //access_token
    public static final String JSAPI_TICKET = "jsapi_ticket";                             //jsapi_ticket


}
